﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;

using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
using Hopthoai;

namespace QUANLYCHAMCONG
{
    public partial class Frmdangkymaychamcong : Form
    {
        public Frmdangkymaychamcong()
        {
            InitializeComponent();
        }

        private void simpleButton3_Click(object sender, EventArgs e)
        {
            Application.ExitThread();
            Application.Exit();
        }
        private void simpleButton1_Click(object sender, EventArgs e)
        {
            if (!String.IsNullOrEmpty(txtmadangky.Text))
            {
                try
                {

                    String s = txtmadangky.Text;
                    //lam ri do o day
                    if(!String.IsNullOrEmpty(s))
		            {
                        MessageBox.Show("Dang ky thanh cong!");
 	                }
                    else
                    {
                        MessageBox.Show("Dang ky that bai!");
                    }
                    Application.ExitThread();
                    Application.Exit();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message.ToString());
                }
            }
        }
    }
}
